<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    a:link {
      /* 访问前状态 */
      color: chartreuse;
    }

    a:visited {
      /* 访问后状态 */
      color: chocolate;
    }

    a:hover {
      /* 悬浮 */
      color: crimson;
    }

    a:active {
      /* 激活 */
      color: darkblue;
    }
  </style>
</head>

<body>
  <a href="http://www.baidu.com">百度</a>
</body>

</html>